﻿
using System;
using System.Collections.Generic;
using System.Linq;

using Northwind.Data;

namespace Subsonic2SqlserverDemo
{
    static class OrderDetailTester
    {
        // **************************************************************** //
        #region [ helper methods ]

        public static void Print(this IEnumerable<OrderDetail> orderdetails)
        {
            int index = 0;
            foreach (OrderDetail orderdetail in orderdetails)
            {
                ++index;
                Console.WriteLine("[{0}] orderid={1} productid={2}",
                    index.ToString(), orderdetail.OrderID, orderdetail.ProductID);
            }
        }

        #endregion

        // **************************************************************** //
        #region [ test ]
        #endregion

        // **************************************************************** //
        #region [ main entry ]
        #endregion
    }// OrderDetailTester
}